#ifndef __MWL_RGBSTRIP_H__
#define __MWL_RGBSTRIP_H__
#include "sfsis.h"
#define MWL_RGBSTRIP_DOTS 255
#define MWL_RGBSTRIP_SETDOT(index, r, g, b) \
    do                                      \
    {                                       \
        ws2812_mem.colors[index].R = (r);   \
        ws2812_mem.colors[index].G = (g);   \
        ws2812_mem.colors[index].B = (b);   \
    } while (0)

typedef union
{
    Color colors[MWL_RGBSTRIP_DOTS];
    su8 rgbMemory[MWL_RGBSTRIP_DOTS][3];
    su8 memory[MWL_RGBSTRIP_DOTS * 3];
} MWL_RgbStrip;
//供外部访问修改
extern MWL_RgbStrip rgbStrip;

void mwl_rs_init(void);
void mwl_rs_update(void);
void mwl_rs_flush(void);
#endif

